/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Skyflow from "../../../index"; export declare namespace Guardrails { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } export declare class Guardrails { protected readonly _options: Guardrails.Options; constructor(_options: Guardrails.Options); /** * Preserve safety and compliance with usage policies. * * @param {Skyflow.CheckGuardrailsRequest} request * @param {Guardrails.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Skyflow.BadRequestError} * @throws {@link Skyflow.UnauthorizedError} * @throws {@link Skyflow.InternalServerError} * * @example * await client.guardrails.checkGuardrails({ * vault_id: "VAULT_ID", * text: "I love to play cricket.", * check_toxicity: true, * deny_topics: ["sports"] * }) */ checkGuardrails(request: Skyflow.CheckGuardrailsRequest, requestOptions?: Guardrails.RequestOptions): core.HttpResponsePromise; private __checkGuardrails; protected _getAuthorizationHeader(): Promise; }